package tt.com.business.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import tt.com.business.service.CommonServTypeService;

@RestController
@RequestMapping(value = "servType/select")
//服务项目的前后端/api/servType/select/xxxx
public class CommonServTypeController {

    @Autowired
    private CommonServTypeService commonServTypeService;

    //显示服务类型
    @PostMapping(value = "select/all")
    public ResponseEntity selectType(){
        return new ResponseEntity(commonServTypeService.selectType(), HttpStatus.OK);
    }
}
